projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c28cbfa
)
cmd_mem: fix cp command
author
Masahiro Yamada
<
[email protected]
>
Mon, 20 May 2013 21:08:08 +0000
(21:08 +0000)
committer
Tom Rini
<
[email protected]
>
Fri, 24 May 2013 14:38:08 +0000
(10:38 -0400)
The "cp" command has not worked since
commit
0628ab8ec59834f98ede267edd21ddb8ba0bb57b
,
because of the following lines, which set the destination
and the source to the same address.
buf = map_sysmem(addr, bytes);
src = map_sysmem(addr, bytes);
Tested-by: Tom Rini <
[email protected]
>
Signed-off-by: Masahiro Yamada <
[email protected]
>
common/cmd_mem.c
patch
|
blob
|
history
diff --git
a/common/cmd_mem.c
b/common/cmd_mem.c
index 64dd76a0f5dfbb5a35b52a4cd14b1c8c80a5d5b3..6df00b15d3f1823a3df9be934efea0c79326f89a 100644
(file)
--- a/
common/cmd_mem.c
+++ b/
common/cmd_mem.c
@@
-445,7
+445,7
@@
static int do_mem_cp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#endif
bytes = size * count;
- buf = map_sysmem(
addr
, bytes);
+ buf = map_sysmem(
dest
, bytes);
src = map_sysmem(addr, bytes);
while (count-- > 0) {
if (size == 4)